package com.sakura.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @author : Sakura
 * @Date : 2023/11/23 9:35
 * @Description : TODO
 */
@ApiModel(description = "老人视图对象")
@Data
@Accessors(chain = true)//链式编程
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class ElderlyVO {
    private Long id;
    private String name;
    private String phone;
    private Integer sex;
    private Integer age;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
    private String gridId;
    private String roomNumber;
    private String idCard;
}
